package com.rui.cn.entity.system;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 字典
 * </p>
 *
 * @author zhang123
 * @since 2018-01-15
 */
@TableName("sys_dict")
public class SysDict extends Model<SysDict> implements Serializable{

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 字典值
     */
    private Integer vlaue;
    /**
     * 字典名称
     */
    private String dicatname;
    /**
     * 类型
     */
    private String type;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 父级id
     */
    private Integer parentid;
    /**
     * 描述
     */
    private String description;
    /**
     * 创建时间
     */
    private String createtime;
    /**
     * 字典状态
     */
    private Integer state;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getVlaue() {
        return vlaue;
    }

    public void setVlaue(Integer vlaue) {
        this.vlaue = vlaue;
    }

    public String getDicatname() {
        return dicatname;
    }

    public void setDicatname(String dicatname) {
        this.dicatname = dicatname;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getParentid() {
        return parentid;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysDict{" +
        "id=" + id +
        ", vlaue=" + vlaue +
        ", dicatname=" + dicatname +
        ", type=" + type +
        ", sort=" + sort +
        ", parentid=" + parentid +
        ", description=" + description +
        ", createtime=" + createtime +
        ", state=" + state +
        "}";
    }
}
